#ifndef SIMPLEDBUS_H
#define SIMPLEDBUS_H

#include <QtDBus/QtDBus>
#include <QtDeclarative/qdeclarative.h>
#include <QDBusInterface>
#include <QDeclarativeEngine>
#include <QDeclarativeContext>
#include "dbusservice.h"

class SimpleDbus : public QObject
{
    Q_OBJECT
public:
    explicit SimpleDbus (QDeclarativeEngine * e);
    Q_INVOKABLE void registerDbus(QString name, QString service,QString path);
    Q_INVOKABLE QVariant * v(QString name);
    //Q_INVOKABLE void registerDbusService(DbusService dbs);
    //Q_INVOKABLE void invokeDbusMethod(QString methodName,QList<QVariant> argumentList);

/*signals:
public slots:
*/

private :
    QDeclarativeEngine * engine;

};

#endif // SIMPLEDBUS_H
